home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / misc / math / MathFX_src.lha / fxr45.c < prev    next >
C/C++ Source or Header  |  1995-12-20  |  235b  |  14 lines

  1. #include "mathfx.h"
  2. #include <math.h>
  3.  
  4. void fxr45(ix,iy,isens)
  5. int *ix, *iy, isens;
  6. {
  7.       int ixx, iyy;
  8.  
  9.       ixx = *ix-isens*(*iy);
  10.       iyy = *ix * isens + *iy;
  11.       *ix = ixx/max(1,abs(ixx));
  12.       *iy = iyy/max(1,abs(iyy));
  13. }
  14.